
package org.bridgen.lang.semantics.ast;
import java.util.*;


public class Text extends Value implements Cloneable {
    public void flushCache() {
        super.flushCache();
    }
     @SuppressWarnings({"unchecked", "cast"})  public Text clone() throws CloneNotSupportedException {
        Text node = (Text)super.clone();
        node.in$Circle(false);
        node.is$Final(false);
    return node;
    }
     @SuppressWarnings({"unchecked", "cast"})  public Text copy() {
      try {
          Text node = (Text)clone();
          if(children != null) node.children = (ASTNode[])children.clone();
          return node;
      } catch (CloneNotSupportedException e) {
      }
      System.err.println("Error: Could not clone node of type " + getClass().getName() + "!");
      return null;
    }
     @SuppressWarnings({"unchecked", "cast"})  public Text fullCopy() {
        Text res = (Text)copy();
        for(int i = 0; i < getNumChildNoTransform(); i++) {
          ASTNode node = getChildNoTransform(i);
          if(node != null) node = node.fullCopy();
          res.setChild(node, i);
        }
        return res;
    }
    // Declared in PrettyPrint.jrag at line 259

    
    
    public void pp(StringBuffer buf) {
    	buf.append("\"" + getValue() + "\"");
    }

    // Declared in TypeCodeGen.jrag at line 515

	
	public void generateCode(String indent, StringBuffer buf) {
		buf.append("\"" + getValue() + "\"");
	}

    // Declared in bridgit.ast at line 3
    // Declared in bridgit.ast line 105

    public Text() {
        super();


    }

    // Declared in bridgit.ast at line 10


    // Declared in bridgit.ast line 105
    public Text(String p0) {
        setValue(p0);
    }

    // Declared in bridgit.ast at line 14


  protected int numChildren() {
    return 0;
  }

    // Declared in bridgit.ast at line 17

  public boolean mayHaveRewrite() { return false; }

    // Declared in bridgit.ast at line 2
    // Declared in bridgit.ast line 105
    protected String tokenString_Value;

    // Declared in bridgit.ast at line 3

    public void setValue(String value) {
        tokenString_Value = value;
    }

    // Declared in bridgit.ast at line 6

    public String getValue() {
        return tokenString_Value != null ? tokenString_Value : "";
    }

    // Declared in TypeAnalysis.jrag at line 69
 @SuppressWarnings({"unchecked", "cast"})     public String type() {
        String type_value = type_compute();
        return type_value;
    }

    private String type_compute() {  return "String";  }

public ASTNode rewriteTo() {
    return super.rewriteTo();
}

}
